package com.blq.web.ServeTemplate.domain.bo;

import com.blq.common.core.validate.AddGroup;
import com.blq.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.blq.common.core.domain.BaseEntity;

/**
 * 业务模板业务对象 serve_template
 *
 * @author Blq
 * @date 2022-11-07
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("业务模板业务对象")
public class ServeTemplateBo extends BaseEntity {

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true)
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 分类
     */
    @ApiModelProperty(value = "分类", required = true)
    @NotBlank(message = "分类不能为空", groups = { AddGroup.class, EditGroup.class })
    private String classify;

    /**
     * 信息
     */
    @ApiModelProperty(value = "信息", required = true)
    @NotBlank(message = "信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String context;

    /**
     *
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;


}
